package thread;

/*
 * @author zzr
 * @date: 2025/04/14  19:59
 * @description:
 */
public class Thread11 {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            for (int i = 5; i > 0; i--) {
                System.out.println("线程执行中");
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        t.start();
        t.join();

        System.out.println("线程执行完毕");
    }
}
